package app.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.User;

@Service
public class NacosProviderService {

    public User getUser(Integer id){
      return  new User(id,"王延",999);
    }

    public User getUser(Integer id,String nam){
          if (id==4){
              int a =1/0;
          }
        return  new User(id,nam,18);
    }
}
